package com.education.wisdom.pojo;

import com.education.common.core.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 订单表 jr_merchant_order
 * 
 * @author ruoyi
 * @date 2018-11-23
 */
public class MerchantOrder extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	/** 商户自增id */
	private Integer id;
	/** 商户id */
	private String orderId;
	/** 创建时间 */
	private Date createTime;
	/**  */
	private Date concelTime;
	/** 支付时间 */
	private Date confirmTime;
	/** 应付金额 */
	private BigDecimal amountPayable;
	/** 实付金额 */
	private BigDecimal payAmount;
	/** 支付勋章币 */
	private Integer currencyPayable;
	/**  */
	private Integer payCurrency;
	/** 0支付中 1成功 2失败 3删除（例如：付错款） */
	private Integer status;
	/** 订单ID */
	private String billId;
	/**  */
	private String userId;
	/** 代金券 */
	private BigDecimal voucher;
	/** 订单类型  1现金 2币 */
	private String type;

	public void setId(Integer id) 
	{
		this.id = id;
	}

	public Integer getId() 
	{
		return id;
	}
	public void setOrderId(String orderId) 
	{
		this.orderId = orderId;
	}

	public String getOrderId() 
	{
		return orderId;
	}
	public void setCreateTime(Date createTime) 
	{
		this.createTime = createTime;
	}

	public Date getCreateTime() 
	{
		return createTime;
	}
	public void setConcelTime(Date concelTime) 
	{
		this.concelTime = concelTime;
	}

	public Date getConcelTime() 
	{
		return concelTime;
	}
	public void setConfirmTime(Date confirmTime) 
	{
		this.confirmTime = confirmTime;
	}

	public Date getConfirmTime() 
	{
		return confirmTime;
	}
	public void setAmountPayable(BigDecimal amountPayable) 
	{
		this.amountPayable = amountPayable;
	}

	public BigDecimal getAmountPayable() 
	{
		return amountPayable;
	}
	public void setPayAmount(BigDecimal payAmount) 
	{
		this.payAmount = payAmount;
	}

	public BigDecimal getPayAmount() 
	{
		return payAmount;
	}
	public void setCurrencyPayable(Integer currencyPayable) 
	{
		this.currencyPayable = currencyPayable;
	}

	public Integer getCurrencyPayable() 
	{
		return currencyPayable;
	}
	public void setPayCurrency(Integer payCurrency) 
	{
		this.payCurrency = payCurrency;
	}

	public Integer getPayCurrency() 
	{
		return payCurrency;
	}
	public void setStatus(Integer status) 
	{
		this.status = status;
	}

	public Integer getStatus() 
	{
		return status;
	}
	public void setBillId(String billId) 
	{
		this.billId = billId;
	}

	public String getBillId() 
	{
		return billId;
	}
	public void setUserId(String userId) 
	{
		this.userId = userId;
	}

	public String getUserId() 
	{
		return userId;
	}
	public void setVoucher(BigDecimal voucher) 
	{
		this.voucher = voucher;
	}

	public BigDecimal getVoucher() 
	{
		return voucher;
	}
	public void setType(String type) 
	{
		this.type = type;
	}

	public String getType() 
	{
		return type;
	}

    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("orderId", getOrderId())
            .append("createTime", getCreateTime())
            .append("concelTime", getConcelTime())
            .append("confirmTime", getConfirmTime())
            .append("amountPayable", getAmountPayable())
            .append("payAmount", getPayAmount())
            .append("currencyPayable", getCurrencyPayable())
            .append("payCurrency", getPayCurrency())
            .append("status", getStatus())
            .append("billId", getBillId())
            .append("userId", getUserId())
            .append("voucher", getVoucher())
            .append("type", getType())
            .toString();
    }
}
